import PlayerCtrl from "../player/PlayerCtrl";

const {ccclass, property} = cc._decorator;

@ccclass
export default class Avator extends cc.Component {
    @property(cc.Label)
    lblNickName: cc.Label = null;

    onEnable(){
        this.updateNickName();
    }

    updateNickName(){
        this.lblNickName.string = PlayerCtrl.data.vo.nickName;
    }
}
